package com.arpa.ntocc.common.mapper;

import com.arpa.ntocc.common.domain.dto.ShipmentDTO;
import com.arpa.ntocc.common.domain.entity.Shipment;
import com.arpa.ntocc.common.domain.vo.ShipmentVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * 货主表 Mapper 接口
 * </p>
 *
 * @author liuyj
 * @since 2019-11-27
 */
public interface ShipmentMapper extends BaseMapper<Shipment> {

    /**
     * 查询列表
     * @param shipmentDTO
     * @return
     */
    List<ShipmentVO> queryList(ShipmentDTO shipmentDTO);

    /**
     * 查询合计,包含总数
     * @param shipmentDTO
     * @return
     */
    ShipmentVO queryListSum(ShipmentDTO shipmentDTO);



    /**
     * 通过仓库标识获取绑定的货主标识
     * @param warehouseCode
     * @return
     */
    List<String> getShipmentCodesByWarehouseCode(String warehouseCode,List<String> shipmentCodes);
}
